/* pages/square/square.wxss */
.square-page {
  // .free-courses .wx-swiper-dot-active {
  //   width: 44rpx;
  //   height: 10rpx;
  //   border-radius: 5rpx;
  // }

  .banner {
    width: 100%;
    height: 240rpx;
    overflow: hidden;
    margin-top: 20rpx;

    .swiper-item {
      width: 100%;
      height: 100%;
    }

    image {
      width: 100%;
      height: 100%;
    }
  }

  .top-search {
    display: flex;
    align-items: center;
    padding: 12rpx 24rpx;
    border-radius: 16rpx;
    background-color: #cdcdcd;

    .search-input {
      background-color: transparent;
      margin-left: 20rpx;
      color: #999999;
      font-size: 32rpx;
      line-height: 48rpx;
    }
  }

  .ima-border-radius {
    border-radius: 10px;
  }

  .square-opera {
    margin: 40rpx 0 32rpx 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;

    .opera-item {
      width: 48%;

      .title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 30rpx;
        margin-bottom: 30rpx;
      }

      .data-list {
        display: flex;
        width: 100%;

        .data-item {
          width: 100%;
          image {
            width: 150rpx;
            height: 150rpx;
          }
        }
      }
    }
  }

  .team-leader-info {
    .info-top {
      display: flex;
      align-items: center;

      .team-leader-avatar {
        width: 80rpx;
        height: 80rpx;
        border-radius: 50%;
        overflow: hidden;

        image {
          width: 100%;
          height: 100%;
        }
      }

      .team-leader-name {
        flex: 1;
        font-weight: 500;
        font-size: 40rpx;
        color: #000000;
        line-height: 46rpx;
        margin-left: 16rpx;
      }

      .private-chat {
        width: 96rpx;
        height: 50rpx;
        border-radius: 76rpx;
        border: 2rpx solid #000000;
        text-align: center;
        color: #000000;
        font-weight: 500;
        font-size: 28rpx;
        line-height: 50rpx;
      }
    }
  }

  .team-leader-item {
    width: 100%;
    background-color: #cdcdcd;
    height: 1052rpx;
    position: relative;
    margin-top: 16rpx;
    border-radius: 16rpx;
    overflow: hidden;

    .img {
      width: 702rpx;
      height: 1052rpx;
      border-radius: 16rpx;
      overflow: hidden;
      overflow: hidden;

      .item-img {
        width: 100%;
        height: 100%;

        image {
          width: 100%;
          height: 100%;
        }
      }
    }
  }

  .location-info {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 70rpx;
    left: 24rpx;

    .location-text {
      font-size: 24rpx;
      color: #ffffff;
      line-height: 28rpx;
      width: 200rpx;
    }
  }

  .topic-list {
    position: absolute;
    left: 24rpx;
    bottom: 24rpx;
    width: 580rpx;
    color: #ffffff;

    .topic-item {
      margin-right: 16rpx;
      font-size: 24rpx;
      color: #ffffff;
      line-height: 28rpx;
    }
  }

  .suspension-list {
    position: absolute;
    top: 442rpx;
    right: 0;

    .suspension-item {
      width: 112rpx;
      height: 98rpx;
      padding: 20rpx;
      background: #ffffff;
      box-shadow: 0rpx 0rpx 60rpx 0rpx
        rgba(0, 0, 0, 0.2);
      border-radius: 80rpx;
      text-align: center;
      margin-bottom: 52rpx;
    }

    & .suspension-item:last-child {
      margin-bottom: 0;
    }
  }

  .free-courses {
    width: 100%;
    position: relative;

    .wx-swiper-dots-horizontal {
      position: absolute;
      bottom: 0rpx;
    }

    .title {
      font-weight: 500;
      font-size: 40rpx;
      color: #000000;
      line-height: 64rpx;
      margin: 32rpx 0 16rpx 0;
    }

    .free-list {
      width: 100%;
      height: 564rpx;

      .list-item {
        // padding-right: 16rpx;
        height: max-content;

        .courses {
          width: 343rpx;
          height: 352rpx;
          border-radius: 8rpx;
          overflow: hidden;

          image {
            width: 100%;
            height: 100%;
          }
        }

        .courses-title {
          font-weight: 500;
          font-size: 28rpx;
          color: #000000;
          line-height: 45rpx;
          margin: 8rpx 0;
          width: 343rpx;
        }

        .courses-tips {
          font-size: 24rpx;
          color: #666666;
          line-height: 38rpx;
          width: 343rpx;
        }

        .courses-organization {
          display: flex;
          align-items: center;
          margin: 8rpx 0;
          width: 343rpx;

          .organization-avatar {
            width: 48rpx;
            height: 48rpx;
            // background: #d9d9d9;
            border-radius: 50%;
            overflow: hidden;

            image {
              width: 100%;
              height: 100%;
            }
          }

          .organization-name {
            font-size: 24rpx;
            color: #999999;
            line-height: 38rpx;
            margin: 0 8rpx;
          }

          .organization-date {
            font-size: 24rpx;
            color: #999999;
            line-height: 38rpx;
            width: 68rpx;
          }
        }

        .courses-price {
          font-weight: 500;
          font-size: 28rpx;
          color: #000000;
          line-height: 45rpx;
        }
      }
    }
  }

  .event-ranking {
    margin-top: 32rpx;

    .event-ranking-title {
      margin-bottom: 16rpx;
      font-weight: 500;
      font-size: 40rpx;
      color: #000000;
      line-height: 64rpx;
    }

    .event-ranking-item {
      margin-bottom: 38rpx;
    }
    & .event-ranking-item:last-child {
      margin-bottom: 0rpx;
    }

    .item-img {
      width: 702rpx;
      height: 352rpx;
      border-radius: 8rpx;
      margin-bottom: 8rpx;
      background-color: #666666;
      overflow: hidden;

      image {
        width: 100%;
        height: 100%;
      }
    }

    .ranking-name {
      width: 700rpx;
      font-size: 28rpx;
      color: #000000;
      line-height: 33rpx;
    }

    .ranking-tips {
      font-weight: 300;
      font-size: 28rpx;
      color: #666666;
      line-height: 33rpx;
      margin: 8rpx 0;
    }

    .ranking-organization {
      display: flex;
      align-items: center;

      .organization-avatar {
        width: 48rpx;
        height: 48rpx;
        border-radius: 50%;
        overflow: hidden;

        image {
          width: 100%;
          height: 100%;
        }
      }

      .organization-name {
        font-weight: 400;
        font-size: 24rpx;
        color: #000000;
        line-height: 38rpx;
        margin: 0 8rpx;
      }
      .organization-date {
        font-size: 24rpx;
        color: #ff5050;
        line-height: 38rpx;
      }
      .organization-price {
        flex: 1;
        text-align: right;
        font-weight: 500;
        font-size: 28rpx;
        color: #000000;
        line-height: 45rpx;
      }
    }
  }

  .add-content {
    padding: 10rpx;
    position: fixed;
    top: 1100rpx;
    right: 48rpx;
    background-color: #f1f1f1;
    border-radius: 50%;
  }

  .popup-content {
    padding: 30rpx;
    padding-bottom: 30rpx;
    padding-top: 80rpx;

    .service-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      // margin-right: 40rpx;
      min-width: 150rpx;

      .iconfont {
        font-size: 40rpx;
        line-height: 40rpx;
      }

      text {
        display: inline-block;
        margin-top: 20rpx;
        font-size: 28rpx;
      }
    }
  }
}
